package com.wu.layer.stereotype.simple.dictory;

import com.wu.framework.inner.layer.data.ConvertApi;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * description
 *
 * @author 吴佳伟
 * @company 杭州来回科技有限公司
 * @date 2022/1/25$ 4:01 下午$
 */
@Component
public class DefaultConvertApi implements ConvertApi {
    /**
     * description 查询多个字典
     *
     * @param convertItems
     * @param order        控制 code 和name 的顺序
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2020/8/6 下午7:54
     */
    @Override
    public Map<String, Map<String, String>> getConvertDataByItems(List<String> convertItems, boolean order) {
        Map<String, Map<String, String>> mapMap = new HashMap<>();
        Map<String, String> map = new HashMap<>();
        map.put("1","男的");
        map.put("2","女的");
        map.put("3","其他");
        mapMap.put("SEX", map);
        return mapMap;
    }
}
